<?php 
	namespace frontend\models;

	use yii\base\Model;
	use yii\web\UploadedFile;

	class UploadForm extends Model
	{
	    /**
	     * @var UploadedFile|Null file attribute
	     */
	    public $file;

	    /**
	     * @return array the validation rules.
	     */
	    public function rules()
	    {
	        return [
	            [['file'], 'file', 'maxFiles' => 10], // <--- here!
	        ];
	    }
	}
 ?>
